/**
 * SPRINGBACK
 * A Java implementation of the Formspring API.
 * 
 * Distributed under the MIT License. See LICENSE for more information.
 */
package com.mattsfarmer.springback;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

/**
 * This class represents a question on Formspring.
 * @author Matt Farmer
 * @version 1.0
 */
@Root(name="item")
public class FormspringItem {
	///////
	// CLASS MEMBERS
	///////
	@Element
	private int id;
	
	@Element
	private String question;
	
	@Element(required=false)
	private String answer;
	
	@Element
	private String time;
	
	@Element
	private FormspringPerson asked_by;
	
	@Element(required=false)
	private FormspringPerson profile;

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the question
	 */
	public String getQuestion() {
		return question;
	}

	/**
	 * @param question the question to set
	 */
	public void setQuestion(String question) {
		this.question = question;
	}

	/**
	 * @return the answer
	 */
	public String getAnswer() {
		return answer;
	}

	/**
	 * @param answer the answer to set
	 */
	public void setAnswer(String answer) {
		this.answer = answer;
	}

	/**
	 * @return the time
	 */
	public String getTime() {
		return time;
	}

	/**
	 * @param time the time to set
	 */
	public void setTime(String time) {
		this.time = time;
	}

	/**
	 * @return the asked_by
	 */
	public FormspringPerson getAsked_by() {
		return asked_by;
	}

	/**
	 * @param askedBy the asked_by to set
	 */
	public void setAsked_by(FormspringPerson askedBy) {
		asked_by = askedBy;
	}

	/**
	 * @param profile the profile to set
	 */
	public void setProfile(FormspringPerson profile) {
		this.profile = profile;
	}

	/**
	 * @return the profile
	 */
	public FormspringPerson getProfile() {
		return profile;
	}
}
